<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>学生成绩</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <%
  pageContext.setAttribute("user","焦磊");
  %>
  ${user}<br>
  <%
  Map<String,String> scoreMap = new HashMap<String,String>();
  scoreMap.put("数据库原理与应用","60");
  scoreMap.put("Linux系统管理与维护","60");
  scoreMap.put("Web前端高级技术","60");
  scoreMap.put("面向对象程序设计","60");
  scoreMap.put("汇编语言","60");
  session.setAttribute("scoreMap", scoreMap);
  %>
  ${scoreMap}<br>
  总分=${scoreMap.数据库原理与应用+scoreMap.Linux系统管理与维护+scoreMap.Web前端高级技术+scoreMap.面向对象程序设计+scoreMap.汇编语言 }<br>
平均分=${(scoreMap.数据库原理与应用+scoreMap.Linux系统管理与维护+scoreMap.Web前端高级技术+scoreMap.面向对象程序设计+scoreMap.汇编语言)/5 }
  </body>
</html>
